package com.zzty.txj.serviceImpl;


import com.zzty.txj.dao.SportMapper;
import com.zzty.txj.entity.Sport;
import com.zzty.txj.service.SportService;
import org.apache.ibatis.annotations.Insert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SportServiceImpl implements SportService {

    @Autowired
    SportMapper sportMapper;

    public Integer count(Sport sport){
        Integer count=sportMapper.count(sport);
        return count;
    }

    public Integer typeCount(Sport sport){
        Integer count=sportMapper.typeCount(sport);
        return count;
    }

    public Sport getSport(Sport sport){
        Sport sport1=sportMapper.getSport(sport);
        return sport1;
    }

    public List<Sport> getUser(Sport sport){
        List<Sport>sport1=sportMapper.getUser(sport);
        return sport1;
    }

    public Sport getSportType(Sport sport){
        Sport sport1=sportMapper.getSportType(sport);
        return sport1;
    }

    public Integer getCount(Sport sport){
        Integer count=sportMapper.getCount(sport);
        return  count;
    }

    public Integer getMcount(Sport sport){
        Integer count=sportMapper.getMcount(sport);
        return count;
    }

    public Integer getScount(Sport sport){
        Integer count=sportMapper.getScount(sport);
        return count;
    }

    public Integer getType(Sport sport){
        Integer count=sportMapper.getType(sport);
        return count;
    }

    @Override
    public Integer updateImg1(Sport sport) {
        Integer count=sportMapper.updateImg1(sport);
        return count;
    }

    @Override
    public Integer updateImg2(Sport sport) {
        Integer count=sportMapper.updateImg2(sport);
        return count;
    }
}
